<?php
	require_once("functions.php");
	if(isLoggedIn()){
		header("location:workspace.php");
		exit();
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="keywords" content="Web, Dojo, Special Problem" />
		<meta name="description" content="A web-based UML diagramming tool" />
		<meta name="author" content="Robenie D. Fernandez; Rodolfo N. Duldulao, Jr." />
        <title>UML WebStudio</title>
        <link rel="stylesheet" type="text/css" href="lib/grids-min.css" />
		<link rel="stylesheet" type="text/css" href="lib/reset.css" />
		<link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico" />
		
		<!--Cache the style files-->
        <link rel="stylesheet" type="text/css" href="lib/dijit/themes/nihilo/nihilo.css" />
        <link rel="stylesheet" type="text/css" href="lib/dijit/themes/soria/soria.css" />
		<link rel="stylesheet" type="text/css" href="lib/dojox/form/resources/FileInput.css" />
		<link rel="stylesheet" type="text/css" href="lib/toolbarIcons.css" />
		<link rel="stylesheet" type="text/css" href="lib/workspace.css"/>
    </head>
    <body onload="setTimeout('fireLoadScript()', 1500);">
    	<p><br /></p>
        <div id="doc4" class="yui-t7">
            <div id="hd">
                <table style="width:100%">
                    <tr>
                        <td>
                            <img src="images/logo3.png" alt="logo"/>
                        </td>
                        <td>
                            <h3 style="background-color:#C3D9FF;padding:5px;">Welcome to UML WebStudio</h3>
                        </td>
                    </tr>
                </table>
                <p><br/></p>
            </div>
            <div id="bd">
                <div class="yui-ge">
                    <div class="yui-u first">
                        <h4>A new approach to UML diagramming</h4>
                        <br/>
                        <p>
                            UML WebStudio (UWS) is built on the idea that UML diagramming can be more 
							intuitive, efficient, and useful. UWS has: 
                        </p>
                        <br/>
                        <ul>
                            <li>
                                <h4>No need for software installation</h4>
                                <p>
                                	Using the open source Dojo Toolkit as its foundation, UWS managed to avoid both 
									proprietary and open source browser addons.
                                </p>
                                <br/>
                            </li>
                            <li>
                                <h4>Online storage for projects</h4>
                                <p>
                                    Create, edit, delete, and store virtually unlimited number of projects 
									on any account.
                                </p>
                                <br/>
                            </li>
                            <li>
                                <h4>Open source project</h4>
                                <p>
									Reproduce and modify the source code with or without permission. Free of charge.
                                </p>
                                <br/>
                            </li>
                        </ul>
                    </div>
                    <div class="yui-u" style="height:225px;background-color:#E8EEFA;padding:5px;">
                        <br/>
                        <h3 class="center">Sign in to UWS</h3>
                        <br/>
                        <form action="login.php" method="post">
                            <table style="width:100%">
                                <tr>
                                    <td>Username</td>
                                    <td>
                                        <input type="text" name="username" size="15"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Password</td>
                                    <td>
                                        <input type="password" name="password" size="15" />
                                    </td>
                                </tr>
                            </table>
							<p style="color:red;text-align:justify;padding:10px;">
								<?php if(isset($_GET["message"])) echo $_GET["message"] ?>
							</p>
							<p class="center">
								<br /><input type="submit" value="Login"/>
							</p>
                        </form>
						<br />
						<p class="center"><a href="signup.php">New user?</a></p>
                    </div>
                </div>
            </div>
            <br/>
            <br/>
            <div id="ft" style="background-color:#C3D9FF;text-align:center;padding-top:5px;padding-bottom:5px;">
                <p>
                    &copy; 2009-2010 Robenie D. Fernandez and Prof. Rodolfo N. Duldulao Jr.
                </p>
            </div>
        </div>
		
		<!--Cache the script files-->
		<script type="text/javascript">
			window.onerror=function(){return true;}
			
			function loadScript(url){
				var script = document.createElement("script")
				script.type = "text/javascript";
				script.src = url;
				document.getElementsByTagName("head")[0].appendChild(script);
			}
			
			function fireLoadScript(){
				loadScript("lib/dojox/data/AndOrReadStore.js");
				loadScript("lib/dijit/Tree.js");
				loadScript("lib/dijit/_Widget.js");
				loadScript("lib/dojox/gfx.js");
				loadScript("lib/dojox/gfx/svg.js");
				loadScript("lib/dojox/gfx/shape.js");
				loadScript("lib/dojox/gfx/VectorText.js");
				loadScript("lib/uws/drawing/DrawManager.js");
				loadScript("lib/uws/drawing/ConnectionHandler.js");
				loadScript("lib/uws/drawing/ChildrenManager.js");
				loadScript("lib/uws/drawing/SurfaceManager.js");
				loadScript("lib/uws/drawing/sequence/Loop.js");
				loadScript("lib/uws/drawing/sqlerd/Relationship.js");
				loadScript("lib/uws/drawing/sqlerd/IdentifyingRelationship.js");
				
				loadScript("lib/uws/Menu.js");
				loadScript("lib/dijit/Menu.js");
				loadScript("lib/dijit/layout/ScrollingTabController.js");
				loadScript("lib/uws/Tree.js");
				loadScript("lib/dijit/layout/ScrollingTabController.js");
				loadScript("lib/dijit/layout/ContentPane.js");
				loadScript("lib/dijit/Dialog.js");
				loadScript("lib/dijit/form/Button.js");
				loadScript("lib/dojox/gfx/path.js");
				loadScript("lib/uws/drawing/ConnectionRestrictionsConstants.js");
				loadScript("lib/uws/Drawing.js");
				loadScript("lib/dijit/_base/manager.js");
				loadScript("lib/dojo/parser.js");
				loadScript("lib/dijit/_HasDropDown.js");
				loadScript("lib/dojox/html/_base.js");
				loadScript("lib/uws/drawing/Connection.js");
				loadScript("lib/dijit/form/_FormWidget.js");
				loadScript("lib/dijit/layout/StackController.js");
				loadScript("lib/uws/drawing/ComponentFocusManager.js");
				loadScript("lib/uws/Drawing.js");
				loadScript("lib/dijit/_base/manager.js");
				loadScript("lib/uws/Main.js");
				loadScript("lib/dojox/gfx/utils.js");
				loadScript("lib/dijit/_base/popup.js");
				loadScript("lib/dijit/layout/StackContainer.js");
				loadScript("lib/dijit/_Templated.js");
				loadScript("lib/dijit/tree/TreeStoreModel.js");
				loadScript("lib/dojo/dnd/move.js");
				loadScript("lib/dijit/form/_FormMixin.js");
				loadScript("lib/dijit/layout/TabController.js");
				loadScript("lib/uws/drawing/usecase/Dependency.js");
				loadScript("lib/dojox/html/metrics.js");
				loadScript("lib/dijit/layout/_LayoutWidget.js");
				loadScript("lib/uws/drawing/sequence/Flow.js");
				loadScript("lib/uws/drawing/activity/Flow.js");
				loadScript("lib/dijit/_base/place.js");
				loadScript("lib/dojo/html.js");
				loadScript("lib/uws/drawing/classdiagram/Generalization.js");
				loadScript("lib/uws/drawing/usecase/Generalization.js");
				loadScript("lib/dojo/i18n.js");
				loadScript("lib/dijit/_base/typematic.js");
				loadScript("lib/dijit/_CssStateMixin.js");
				loadScript("lib/dijit/layout/_TabContainerBase.js");
				loadScript("lib/uws/drawing/ComponentManager.js");
				loadScript("lib/dijit/_KeyNavContainer.js");
				loadScript("lib/dojo/window.js");
				loadScript("lib/uws/drawing/usecase/Actor.js");
				loadScript("lib/dijit/tree/ForestStoreModel.js");
				loadScript("lib/dijit/TooltipDialog.js");
				loadScript("lib/dojo/dnd/Moveable.js");
				loadScript("lib/dojo/dnd/autoscroll.js");
				loadScript("lib/uws/drawing/usecase/Association.js");
				loadScript("lib/dijit/form/Form.js");
				loadScript("lib/uws/drawing/usecase/Association.js");
				loadScript("lib/uws/drawing/sqlerd/Connection.js");
				loadScript("lib/uws/drawing/usecase/Note.js");
				loadScript("lib/dijit/_base/wai.js");
				loadScript("lib/uws/drawing/Component.js");
				loadScript("lib/dojo/dnd/Mover.js");
				loadScript("lib/dojo/date/stamp.js");
				loadScript("lib/uws/drawing/usecase/UseCase.js");
				loadScript("lib/uws/drawing/sqlerd/MultivaluedAttribute.js");
				loadScript("lib/uws/drawing/SortOrderManager.js");
				loadScript("lib/uws/drawing/sqlerd/KeyAttribute.js");
				loadScript("lib/uws/drawing/sqlerd/WeakEntity.js");
				loadScript("lib/dojox/gfx/Moveable.js");
				loadScript("lib/uws/drawing/sqlerd/DerivedAttribute.js");
				loadScript("lib/uws/drawing/sqlerd/Attribute.js");
				loadScript("lib/uws/drawing/sequence/ObjectComponent.js");
				loadScript("lib/dijit/CheckedMenuItem.js");
				loadScript("lib/uws/drawing/sqlerd/Entity.js");
				loadScript("lib/uws/drawing/ConnectionManager.js");
				loadScript("lib/uws/drawing/activity/Activity.js");
				loadScript("lib/uws/drawing/usecase/SystemBox.js");
				loadScript("lib/dijit/_Container.js");
				loadScript("lib/dojox/layout/ContentPane.js");
				loadScript("lib/dijit/DialogUnderlay.js");
				loadScript("lib/dijit/layout/TabContainer.js");
				loadScript("lib/uws/drawing/activity/Stop.js");
				loadScript("lib/dojo/data/util/simpleFetch.js");
				loadScript("lib/uws/drawing/activity/Decision.js");
				loadScript("lib/dojox/gfx/Mover.js");
				loadScript("lib/dijit/PopupMenuItem.js");
				loadScript("lib/dojo/cookie.js");
				loadScript("lib/dojo/string.js");
				loadScript("lib/dojo/data/util/sorter.js");
				loadScript("lib/dijit/MenuSeparator.js");
				loadScript("lib/dojo/fx/Toggler.js");
				loadScript("lib/dojo/dnd/TimedMoveable.js");
				loadScript("lib/dojo/cache.js");
				loadScript("lib/dijit/Toolbar.js");
				loadScript("lib/dijit/_DialogMixin.js");
				
				loadScript("lib/uws/drawing/classdiagram/ClassBox.js");
				loadScript("lib/uws/drawing/PropertiesManager.js");
				loadScript("lib/dijit/layout/BorderContainer.js");
				loadScript("lib/dojox/data/AndOrWriteStore.js");
				loadScript("lib/dojox/xml/DomParser.js");
				loadScript("lib/dijit/_base/focus.js");
				loadScript("lib/dojo/fx.js");
				loadScript("lib/uws/Data.js");
				loadScript("lib/dijit/MenuItem.js");
				loadScript("lib/dijit/MenuBar.js");
				loadScript("lib/dojo/DeferredList.js");
				loadScript("lib/dojo/uacss.js");
				
				setTimeout('loadScript("lib/dojo/dojo.js")', 1500);
			}
		</script>
    </body>
</html>
